<%@ page import="java.util.*"%>
<%@ page import="com.hotel.BL.GenericLogic" %>
<%@ page import = "java.util.ArrayList"%>
<%@ page import ="java.util.List"%>
<%@ page import ="data.CleaningStatus"%>
<%@ page import ="data.ReservationStatus"%>


<script src="js/components/detailInformation/detailInformation.js"></script>

<link href="css/components/roomManagementList/roomManagementList.css" rel="stylesheet" />
<link href="css/components/detailInformation/detailInformation.css" rel="stylesheet" />



<%
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
    Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);


String sPathroomColorStatus=resource.getString("detailInformation.roomColorStatus");
String sPathcleanColorStatus=resource.getString("detailInformation.cleanColorStatus");

GenericLogic gl = new GenericLogic(request);

%> 



<table class="roomManagementList" width="165px" border="0" cellspacing="0" cellpadding="1" style="margin-top: 19px;" >

	<tbody>
	<tr class="head-task-bg">
		<td>
			<%	out.println(resource.getString("detailInformation.DetailInformation")); %>
		</td>
	</tr>
	<tr>
		<td class="listItem sapLine"><a href="javascript:void(0);" onclick="alert('link')";>- <%	out.print(resource.getString("detailInformation.checkinStatus")); %></a></td>
	</tr>
	<tr>
		<td class="listItem sapLine"><a href="javascript:void(0);" onclick="alert('link')";>- <%	out.print(resource.getString("detailInformation.moneySchedule")); %></a></td>
	</tr>
	<tr>
		<td class="listItem sapLine"><a href="javascript:void(0);" onclick="alert('link')";>- <%	out.print(resource.getString("detailInformation.counterMoneyList")); %></a></td>
	</tr>
	<tr>
		<td class="listItem sapLine"><a href="javascript:void(0);" onclick="alert('link')";>- <%	out.print(resource.getString("detailInformation.roomCountReport")); %></a></td>
		</td>
	</tr>
	<tr>
		<td class="listItem sapLine"><a href="javascript:toggle('<%=sPathroomColorStatus%>');"  id="displayText" > + <%out.print(resource.getString("detailInformation.roomColorStatus")); %></a> <br/>
		<div id="toggleText" style="display: none">
		
		<table class="detailIformation" width="165px" border="0" cellspacing="0" cellpadding="1" >
		
		<%
		List<ReservationStatus> list =gl.GetAllReservationStatus((Long)session.getAttribute("hotelId"));
		
		String titleStatus = null;
		String statuscolor =null;
		int i=0;
		for(ReservationStatus rs:list) {
                 titleStatus = rs.getTitle();
                 statuscolor = rs.getColor();
		//out.print(titleStatus+"<br/>"+statuscolor+"<br/>");
		%>
		<tr >
		<td width="33px" height="20px"  style="text-align:center;">
        <span class="markcolor"  style="background-color:<%=statuscolor%>;">&nbsp;</span>
        </td>
		<td width="132px" ><%=titleStatus%></td>
		</tr>
		<%}%>
		
		</table>
		</div>
	</td></tr>
	<tr>
		<td class="listItem sapLine"><a href="javascript:toggle2('<%=sPathcleanColorStatus%>');" id="displayText2">+ <%	out.print(resource.getString("detailInformation.cleanColorStatus")); %></a>
		<br/>
		<div id="toggleText2" style="display: none">
		<table class="detailIformation" width="165px" border="0" cellspacing="0" cellpadding="1" >
		
		<%
		List<CleaningStatus> list2 =gl.GetAllCleaningStatus((Long)session.getAttribute("hotelId"));
		
		 titleStatus = null;
		 statuscolor =null;
		for(CleaningStatus cs :list2) {
                 titleStatus = cs.getTitle();
                 statuscolor = cs.getColor();
		//out.print(titleStatus+"<br/>"+statuscolor+"<br/>");
		%>
		<tr >
		<td width="33px" height="20px" style="text-align:center;">
        <span class="markcolor"  style="background-color:<%=statuscolor%>;">&nbsp;</span></td>
		<td width="132px"  ><%=titleStatus%></td>
		</tr>
		<%}%>
		
		</table>
		</div>
		</td>
	</tr>
</table>
</div>